package Scan;

public class SwichCase {
    public static void main(String[] args) {
        int num = 2;
        switch (num){//只能分析整数
            case 1:
                System.out.println(222);
                break;
            case 2://以此为入口
                System.out.println(444);
                break;//跳出Swich
            case 3:
                System.out.println(666);
            default://所有case未匹配时执行
                System.out.println(888);


        }
    }
}
